package aopDemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

		//CommentServiceImpl commentService = (CommentServiceImpl) applicationContext.getBean("commentServiceImpl");
		//commentService.postComment("微信联系我吧");

		ACImpl acimpl=applicationContext.getBean(ACImpl.class);
		int rs=acimpl.add(5,6);
		System.out.println(rs);

	}

}
